﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewCompany.aspx.cs" Inherits="ViewCompany" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Company View</title>
     <link href="../../Styles/accounts.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    
    <table style="width:100%; height:100%;">
        <tr style=" width: 100%; height: 5%;">
            <td >
               <div style="background-image:url('../../Images/top1.jpg'); background-repeat:repeat-x; height:43px; vertical-align:top; width:100%; ">
                    <span style="padding-left:20px; height:40px; width:171px; float:left;">
                        <img src="../../Images/logo.jpg" style="height:40px; padding-top:3px; width:171px;"  />    </span>
                    <div style="float:right; margin-top:5px;  width:80px;">            
                        <asp:HyperLink ID="HypHome" runat="server" ImageUrl="../../Images/login/home1.png" NavigateUrl="~/Welcome.aspx" Target="contentframe" style="float:left;"></asp:HyperLink>&nbsp;&nbsp;
                        <asp:HyperLink ID="hypImg" runat="server" ImageUrl="../../Images/login/logout1.png" NavigateUrl="~/AdminLogin.aspx" Target="_parent" ></asp:HyperLink>
                    </div>
                    <div style="clear:both"  ></div>
               </div>   
            </td>
        </tr>
      
        <tr style="width: 100%; height: 80%; vertical-align: top; ">
           <td style="width: 100%; height: 480px; vertical-align: top; ">
            <div style="width:100%; margin-left:2%; margin-top:10px;">
                <acc:heading ID="header1" runat="server" HeadingText="Company View" />
             </div>
            <%--   <div align="left">
                    <asp:HyperLink ID="HypNewComp" Text="Create Company" runat="server" CssClass="button"  NavigateUrl="~/Main/Company/CreateCompany.aspx"></asp:HyperLink>
                </div>--%>
                <div align="left" style="width:40%; margin-left:31%; margin-right:30%; height:32px"> 
                     <asp:HyperLink ID="HypCreateCompany" runat="server" ImageUrl="../../Images/createcompany.png" NavigateUrl="~/Main/Admin/CreateCompany.aspx"/>
                </div>
                
              <div style="width:40%; margin-left:30%; height:80%; margin-right:30%;  ">
                <asp:GridView ID="GridViewCompany" runat="server" CssClass="gridview" Width="100%" 
                                RowStyle-CssClass="gridviewitem" PagerStyle-CssClass="pgr"
                    AutoGenerateColumns="false"  AlternatingRowStyle-CssClass="gridview_alternate"
                    AllowPaging="true" PageSize="10" EmptyDataRowStyle-CssClass="emptyrow"
                     EmptyDataText="No Record Exist!"> 
                     <Columns>
                         <asp:TemplateField HeaderText="S.No" ItemStyle-HorizontalAlign="Center" >
                                <ItemTemplate><%#Container.DataItemIndex+1%></ItemTemplate>    
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Company Name" DataField="companyname" />
                            <asp:BoundField HeaderText="Server Name" DataField="servername" />
                            <asp:BoundField HeaderText="Database Name" DataField="dbname" />
                            <asp:BoundField HeaderText="User Id" DataField="userid" />
                               
                     </Columns>
                 </asp:GridView>
                </div>
           </td>
        </tr>
        
        <tr style="background-image: url('../../Images/login/footer.jpg'); background-color: #336b3e;
            background-repeat: repeat-x; width: 100%; height: 4%;">
            <td align="right" colspan="3" style="padding-right: 10px; font-size: 13px; color: White;
                padding-top: 5px; height: 40px; margin-top: 1px;">
                Copyright &copy; Digital Info Solutions Pvt. Ltd.
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
